package key2.exer3;

/**
 * @author shkstart
 * @date 2022/5/29 - 20:43
 */
abstract public class Employee {
    private String name;
    private int number;
    private MyDate birthday;



    public String getName() {
        return name;
    }

    public MyDate getBirthday() {
        return birthday;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setBirthday(MyDate birthday) {
        this.birthday = birthday;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getNumber() {
        return number;

    }

    @Override
    public String toString() {
        return "name='" + name + '\'' +
                ", number=" + number +
                ", birthday=" + birthday.toDateString();
    }

    public Employee(String name, int number, MyDate birthday) {
        this.name = name;
        this.number = number;
        this.birthday = birthday;
    }

    abstract public double earnings();


}



